package market.constant;

import market.impl.EightDiscountProxy;
import market.impl.NoDiscountProxy;
import market.impl.NoSaleProxy;
import market.impl.OneHundredMinusTenSaleProxy;

import java.math.BigDecimal;

/**
 * 公共常量类
 */
public class CommonConstant {
    //苹果价格
    public static final BigDecimal APPLE_PRICE = BigDecimal.valueOf(8.0);
    //草莓价格
    public static final BigDecimal STRAWBERRY_PRICE = BigDecimal.valueOf(13.0);
    //芒果价格
    public static final BigDecimal MANGO_PRICE = BigDecimal.valueOf(20.0);
    //8折优惠
    public static final BigDecimal EightDiscount = BigDecimal.valueOf(0.8);
    //无优惠策略
    public static final NoDiscountProxy NO_DISCOUNT_PROXY = new NoDiscountProxy();
    //八折优惠策略
    public static final EightDiscountProxy EIGHT_DISCOUNT_PROXY = new EightDiscountProxy();
    //无满减策略
    public static final NoSaleProxy NO_SALE_PROXY = new NoSaleProxy();
    //满100减10策略
    public static final OneHundredMinusTenSaleProxy ONE_HUNDRED_MINUS_TEN_SALE_PROXY = new OneHundredMinusTenSaleProxy();

}
